package org.neptune.service.redis;

import org.neptune.common.constant.CharacterConstant;

/**
 * @author lwl
 * @date 2019/7/25 15:31
 */
public class RedissonUtil {

	/**
	 * 构造redis key
	 *
	 * @param prefix
	 * @param key
	 * @return
	 */
	public static String getRedisKey(String prefix, String key) {

		StringBuilder builder = new StringBuilder();
		builder.append(prefix).append(CharacterConstant.COLON_EN).append(key);

		return builder.toString();
	}

}
